package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.party.business.mapper.ResearchSubmissionsMapper;
import com.party.business.domain.ResearchSubmissions;
import com.party.business.service.IResearchSubmissionsService;

/**
 * 前沿技术Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class ResearchSubmissionsServiceImpl extends ServiceImpl<ResearchSubmissionsMapper,ResearchSubmissions>  implements IResearchSubmissionsService
{
    @Autowired
    private ResearchSubmissionsMapper researchSubmissionsMapper;

    /**
     * 查询前沿技术
     *
     * @param id 前沿技术主键
     * @return 前沿技术
     */
    @Override
    public ResearchSubmissions selectResearchSubmissionsById(Long id)
    {
        return researchSubmissionsMapper.selectResearchSubmissionsById(id);
    }

    /**
     * 查询前沿技术列表
     *
     * @param researchSubmissions 前沿技术
     * @return 前沿技术
     */
    @Override
    public List<ResearchSubmissions> selectResearchSubmissionsList(ResearchSubmissions researchSubmissions)
    {
        return researchSubmissionsMapper.selectResearchSubmissionsList(researchSubmissions);
    }

    /**
     * 新增前沿技术
     *
     * @param researchSubmissions 前沿技术
     * @return 结果
     */
    @Override
    public int insertResearchSubmissions(ResearchSubmissions researchSubmissions)
    {
            return researchSubmissionsMapper.insertResearchSubmissions(researchSubmissions);
    }

    /**
     * 修改前沿技术
     *
     * @param researchSubmissions 前沿技术
     * @return 结果
     */
    @Override
    public int updateResearchSubmissions(ResearchSubmissions researchSubmissions)
    {
        return researchSubmissionsMapper.updateResearchSubmissions(researchSubmissions);
    }

    /**
     * 批量删除前沿技术
     *
     * @param ids 需要删除的前沿技术主键
     * @return 结果
     */
    @Override
    public int deleteResearchSubmissionsByIds(Long[] ids)
    {
        return researchSubmissionsMapper.deleteResearchSubmissionsByIds(ids);
    }

    /**
     * 删除前沿技术信息
     *
     * @param id 前沿技术主键
     * @return 结果
     */
    @Override
    public int deleteResearchSubmissionsById(Long id)
    {
        return researchSubmissionsMapper.deleteResearchSubmissionsById(id);
    }
}
